# 1.点击“删除”按钮，确定删除，删除成功。
testCase37='DBshop037_删除客户扩展信息'
import  time
from public.action import *
from public.testData import *
from public.tools import*
from public.business import *
firefox=openBrowser(urlAdmin)
DBshopLoginAdmin(firefox)
DBshopEnterMenu2(firefox,'客户管理','客户扩展信息')

firefox.find_element_by_xpath('//td[contains(.,"123")]/following-sibling::td[6]/a[2]').click()#xpath坐标轴定位到删除
firefox.switch_to.alert.accept()
time.sleep(4)
try:
    firefox.find_element_by_xpath('//td[text()="优秀客户"]').is_displayed()
    writeLog('%s 测试不通过' % testCase37)
    getPhoto(firefox)

except:
    writeLog('%s 测试通过' % testCase37)
firefox.quit()
